package com.poizon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

@Data
@TableName("t_sms_log")
@NoArgsConstructor
public class SmsLog {
  @TableId(type = IdType.AUTO)
  private Long id;
  private Integer type;
  private String phone;
  private String info;
  private Date ctime;

  public SmsLog(Integer type, String phone, String info) {
    this.type = type;
    this.phone = phone;
    this.info = info;
    ctime = new Date();
  }
}
